<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<!--suppress HtmlRequiredTitleElement -->
<head>
    <th:block th:include="include :: header('分配用户')"/>
</head>
<body onscroll="layui.admin.hideFixedEl();" class="theme-himio">
<!-- 正文开始 -->
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <!-- 表格工具栏 -->
            <form class="layui-form toolbar table-tool-mini">
                <input type="hidden" name="roleId" th:value="${role.roleId}">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label w-auto">登录账号:</label>
                        <div class="layui-input-inline">
                            <label>
                                <input name="loginName" class="layui-input" autocomplete="off"/>
                            </label>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label w-auto">手机号:</label>
                        <div class="layui-input-inline">
                            <label>
                                <input name="phoneNumber" class="layui-input" autocomplete="off"/>
                            </label>
                        </div>
                    </div>
                    <div class="layui-inline" style="padding-right: 110px;">
                        <button class="layui-btn icon-btn" lay-filter="authUserTbSearch" lay-submit>
                            <i class="layui-icon layui-icon-search"></i>搜索
                        </button>
                    </div>
                </div>
            </form>
            <!-- 数据表格 -->
            <table id="authUserTable" lay-filter="authUserTable"></table>
        </div>
    </div>
</div>

<!-- 表格操作列 -->
<script type="text/html" id="authUserTbBar">
    <a class="layui-btn icon-btn layui-bg-red layui-btn-sm" lay-event="cancel"><i
            class="fa fa-close"></i>取消授权</a>
</script>

<!-- js部分 -->
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermit('system:role:edit')}]];
    var removeFlag = [[${@permission.hasPermit('system:role:remove')}]];
    var dictSysNormalDisable = [[${@dict.getType('sys_normal_disable')}]];

    var prefix = ctx + "system/role";
    var currentRole = [[${role}]];
</script>
<script th:src="@{/static/assets/system/js/authUser.js}"></script>
</body>
</html>